package StaticProxy;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: homechen
 * Date: 2024-03-24
 * Time: 14:03
 */
public class StaticProxyDemo {
    public static void main(String[] args) {
        UserService userService = new UserServiceImpl(); // 被代理对象
        UserService proxy = new UserServiceProxy(userService); // 代理对象
        proxy.save("Alice");
    }
}
